#ifndef __HIKARI_MoveByKeyboard___FILE__DEFINED
#define __HIKARI_MoveByKeyboard___FILE__DEFINED

#include "hikari.h"

class MoveByKeyboard:public BaseHikariScript{
public:
//PLEASE DO NOT MODIFY THIS SECTION
//PROPERTIES_SECTION_START
//PROPERTIES_SECTION_END
    //virtual void sceneLoaded(HObj*object, HikariContext*context){}
	//virtual void sceneUnloading(HObj*object, HikariContext*context){}
	virtual void update(HObj*object, HikariContext*context){
		if(context->getInput()->IsKeyDown(KEY_KEY_W)){
			object->moveZ(0.6);
		}
		if(context->getInput()->IsKeyDown(KEY_KEY_S)){
			object->moveZ(-0.6);
		}
		if(context->getInput()->IsKeyDown(KEY_KEY_A)){
			object->turnY(-5);
		}
		if(context->getInput()->IsKeyDown(KEY_KEY_D)){
			object->turnY(5);
		}
		if(context->getInput()->IsKeyDown(KEY_KEY_Q)){
			object->turnX(-5);
		}
		if(context->getInput()->IsKeyDown(KEY_KEY_Z)){
			object->turnX(5);
		}
	};
    
};
#endif